{extends file="../insider_base.html"}

{block name=insider}
{function name=sitemap parent_id=1}
<div class="sitemap map_level{$parent_id}{($parent_id>1)?' map_level_child':''}">
    <ul class="ul">
        {foreach menu('children',$parent_id) as $menu_id}
        {$map_data=menu('list',$menu_id)}
        {if $map_data.is_map}
        <li>
            <div class="map_tit"><a href="{call menu_link id=$map_data.id}">{$map_data.title}</a></div>
            {if $map_data.child_count>0}
            <div class="map_con">
            {call sitemap parent_id=$menu_id}
            </div>
            {/if}
        </li>
        {/if}
        {/foreach}
    </ul>
</div>
{/function}
{call sitemap parent_id=1}
{/block}
